﻿Imports System.Configuration

Public Class Conexion
    Public Function ObtenerCadenaConexion() As String
        Dim cadenaConexion As String = ConfigurationManager.ConnectionStrings("DemoCapas").ConnectionString

        If Object.ReferenceEquals(cadenaConexion, String.Empty) Then
            Return String.Empty
        Else
            Return cadenaConexion
        End If
    End Function
End Class
